//
//  MyTgFooterView.m
//  团购网
//
//  Created by song on 15/1/13.
//  Copyright (c) 2015年 song. All rights reserved.
//

#import "MyTgFooterView.h"

@implementation MyTgFooterView

/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code
}
*/

- (IBAction)loadClick:(id)sender {
    self.loadbtn.hidden = YES;
    
    self.loadview.hidden =NO;
    
    dispatch_after(dispatch_time(DISPATCH_TIME_NOW, (int64_t)(3.0 * NSEC_PER_SEC)), dispatch_get_main_queue(), ^{
        
        [self.delegate  loadingMoreData];
        self.loadbtn.hidden =NO;
        self.loadview.hidden = YES;
        
    });
    
    
    
}




+(instancetype)footView
{
    UINib *nib = [UINib nibWithNibName:@"footview" bundle:nil];
    UIView *footer = [[nib instantiateWithOwner:nil options:nil]lastObject];
    return footer;
}

@end
